﻿using ExplorerGame.Characters;
using ExplorerGame.Gameboard.Elements;

namespace ExplorerGame.Gameboard
{
    internal class Gameboard
    {
        private GameboardElement[][] map;
        private Hero hero;

        internal Gameboard(int width, int height)
        {
            this.Width = width;
            this.Height = height;

            map = new GameboardElement[width][];

            for (int i = 0; i < width; i++)
            {
                map[i] = new GameboardElement[height];
            }
        }

        internal int Height { get; set; }

        internal int Width { get; set; }

        internal Location HeroLocation { get; set; }

        internal void SetElementAt(int width, int height, GameboardElement gameboardElement)
        {
            this.map[width][height] = gameboardElement;
        }

        internal GameboardElement GetElementAt(int width, int height)
        {
            return this.map[width][height];
        }
    }
}
